function timer(opj){
  $(opj).find('ul').animate({
    marginTop : "-3.5rem"
  },500,function(){
    $(this).css({marginTop : "0rem"}).find("li").eq(0).appendTo(this);
  })
}

$(document).ready(function(){
  var swiper = new Swiper('.swiper-container', {
    spaceBetween: 30,
    centeredSlides: true,
    loop: true,
    autoplay: {
      delay: 2500,
      disableOnInteraction: false,
    },
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
    }
  });



  var num = $('.notice_active').find('li').length;
  if(num > 1){
    var time=setInterval('timer(".notice_active")',3000);
    $('.huadong .notice_active').mouseover(function(){
      clearInterval(time);
    }).mouseout(function(){
      time = setInterval('timer(".notice_active")',3000);
    });
  }

  $(".news_ck").click(function(){
    location.href = $(".notice_active .notice_active_ch").children(":input").val();
  });
});